package com.acme.bankapp.domain.bank;

/**
 * Created by anton on 8/18/14.
 */
public class Client {
    // Fields
    private final String name;
    private final Gender gender;
    private AbstractAccount account;

    public Client(String name, Gender gender, AbstractAccount account) {
        this.name = name;
        this.gender = gender;
        this.account = account;
    }

    public void getClientSalutation() {
        System.out.println(this.gender.getPrefix() + this.name);
    }

//    public Client(CheckingAccount account) {
//        this.account = account;
//    }

    public AbstractAccount getAccount() {
        return account;
    }
}
